<%@ Control Language="c#" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="FileGalleries" Namespace="CommunityServer.Files.Controls" Assembly="CommunityServer.Files" %>
<%@ Register TagPrefix="CA" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>

<script language="C#" runat="server">

protected override void OnPreRender(EventArgs e)
{
	foreach (ComponentArt.Web.UI.TreeViewNode node in Tree.Nodes)
	{
		node.ImageUrl = "folders.gif";
		node.ExpandedImageUrl = "folders.gif";
	}

	base.OnPreRender (e);
}

</script>

<div class="CommonSidebarArea">
	<h4 class="CommonSidebarHeader"><FileGalleries:ResourceControl ResourceName="Files_BrowseFolders" runat="server" id="Resouce1" /></h4>
	<div class="CommonSidebarContent">
	
<CA:TreeView id="Tree" 
	DragAndDropEnabled="false" 
    NodeEditingEnabled="false"
    KeyboardEnabled="true"
    CssClass="FileFolderTree" 
    NodeCssClass="FileFolderTreeNode" 
    SelectedNodeCssClass="FileFolderTreeNodeSelected" 
    HoverNodeCssClass="FileFolderTreeNodeHover"
    LineImageWidth="19" 
    LineImageHeight="20"
    DefaultImageWidth="16" 
    DefaultImageHeight="16"
    ItemSpacing="0" 
    ImagesBaseUrl="~/themes/default/images/file/"
    NodeLabelPadding="3"
    ParentNodeImageUrl="folder.gif" 
    ExpandedParentNodeImageUrl="folder_open.gif" 
    LeafNodeImageUrl="folder_open.gif" 
    ShowLines="true" 
    LineImagesFolderUrl="~/themes/default/images/file/lines/"
    EnableViewState="true"
    runat="server"  />
    
    </div>
</div>